package com.fausto.learnimprint.core.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author fausto
 * @since 2022-03-28
 */

@TableName("code")
public class Code implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 邀请码主键
     */
    private String codeId;

    /**
     * 激活码状态0 未使用 1已使用 2 已删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer codeState;

    /**
     * 用户id
     */
    private Integer userId;

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public Integer getCodeState() {
        return codeState;
    }

    public void setCodeState(Integer codeState) {
        this.codeState = codeState;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Code{" +
                "codeId=" + codeId +
                ", codeState=" + codeState +
                ", userId=" + userId +
                "}";
    }
}
